package router

import (
	"client/api"
	"client/global"
	"github.com/gin-gonic/gin"
)

func init() {
	global.Router.GET("index", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"code": 200,
			"msg":  "success",
		})
	})
	global.Router.POST("es/add", api.EsAdd)
	global.Router.POST("es/show", api.EsShow)
	global.Router.POST("es/high", api.EsHigh)
	global.Router.POST("es/index", api.EsIkIndex)
	global.Router.POST("es/count", api.EsCount)
	global.Router.POST("es/upload_file", api.UploadFile)
}
